﻿using System.Data;
using System.Data.SqlClient;
using LoverMeeting.Model.Entity;

namespace LoverMeeting.DataBase.DataMappers
{
    public class LoverConfigurationMapper : IDataMapper<LoverConfiguration>
    {
        public LoverConfiguration GetData(IDataReader reader)
        {
            var configuration = new LoverConfiguration
            {
                Id = (int)reader["LoverConfigurationId"],
                Status = (string)reader["Status"],
                Description = (string)reader["Description"]
            };
            return configuration;
        }

        public void SetParameter(SqlCommand command, LoverConfiguration entity)
        {
            throw new System.NotImplementedException();
        }

        public int GetRecordCount(IDataReader reader)
        {
            throw new System.NotImplementedException();
        }
    }
}
